package com.jj.controller;

import com.jj.client.UserClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FeignController {

    @Autowired
    private UserClient userClient;

    @GetMapping("getInfo")
    public String getInfo(){
        return userClient.getInfo("zhangsan",28);
    }
}
